2017年3月29日 — Welcome to Vi and Vim! One use for s is to replace a single character with more characters (since r only works with one character replacements).
Vim provides the :s (substitute) command for search and replace; this tip shows examples of how to substitute. On some systems, gvim has Find and Replace on ...
2014年3月11日 — This will search the entire document for old and replace the first instance on each line with new. You can use :%s/old/new/g to replace all ...